class VoteController < ApplicationController
    before_filter :login_required, :except => [ :list, :index, :show ]

    def create
      #FIXME acts_as_voteable totally acts_as_broken
      v=Vote.new(:voteable_type => params[:vote][:voteable_type], :voteable_id=>params[:vote][:voteable_id], :vote=>params[:vote][:vote], :user_id=>current_user.id)
      v.save!
      redirect_to :controller=> :doc, :action=>:show, :id => v.voteable_id
    end
end
